const router = require("koa-router")()
const ArticleModel = require("../../models/article")
router.get("/api/article",async ctx=>{
    var data = await ArticleModel.find({}).sort({_id:-1})
    ctx.body={
        code:200,
        res:data,
        msg:"文章相关数据"
    }
})
module.exports = router